import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../pages/Home.vue'
import About from '../pages/About.vue'

Vue.use(VueRouter)

//创建一个路由器，管理着整个应用中的所有路由
const router = new VueRouter({
	routes:[
		{
			path:'/home',
			component:Home
		},
		{
			path:'/about',
			component:About
		}
	]
})

//暴露路由器
export default router